#include "dialog.h"
#include "ui_dialog.h"
#include<QPalette>
#include<QMessageBox>
#include<QColorDialog>
#include<QColor>
#include<QStringList>
Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
    QPalette p=this->palette();
    p.setColor(QPalette::Window,Qt::white);
    this->setPalette(p);
    ui->dateTimeEdit->setDateTime(QDateTime::currentDateTime());
    ui->label_5->setScaledContents(true);
    QString s1=":/resource/image2.jpg";
    QImage img1;
    img1.load(s1);
    QPixmap p1=QPixmap::fromImage(img1);
    p1.scaled(ui->label_5->size());
    ui->label_5->setPixmap(p1);
}
void Dialog:: do_change_label(QStringList qs1)
{
    ui->label_1->setText("起点站");
    ui->label_3->setText("终点站");
    ui->label_2->setText(qs1[0]+qs1[1]);
    ui->label_4->setText(qs1[2]+qs1[3]);
}
Dialog::~Dialog()
{
    delete ui;
}
